﻿using System.Collections.ObjectModel;
using Reflector.CodeModel;

namespace CallGraphExtractor.CecilAdapter
{
    class EventDeclarationCollection : Collection<IEventDeclaration>, IEventDeclarationCollection
    {
        #region Lifecycle

        public EventDeclarationCollection(Mono.Collections.Generic.Collection<Mono.Cecil.EventDefinition> collection)
        {
            foreach (var item in collection)
            {
                this.Add(new EventDeclaration(item));
            }
        }

        #endregion Lifecycle

        #region IEventDeclarationCollection Members

        public void AddRange(System.Collections.ICollection value)
        {
            throw new System.NotImplementedException();
        }

        public new void Remove(IEventDeclaration value)
        {
            throw new System.NotImplementedException();
        }

        #endregion IEventDeclarationCollection Members
    }
}
